package com.wc.AlgoOJ_train.train1.c0.A019;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2023/12/25 11:26
 * @description 光头强A+B
 * http://43.138.190.70:8888/p/A019
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        while (n-- > 0) {
            long a = sc.nextInt();
            long b = sc.nextInt();
            System.out.println((a + b) % 100);
        }
    }
}
